CC = gcc
FLAGS = -fno-stack-protector
L0 = -O0
L1 = -O1

all : test_jit test_of test_sof

test_jit : jit.c
	$(CC) -o $@ $^

test_of : overflow.c
	$(CC) -o $@ $^ $(FLAGS) $(L0)

test_sof : stack_overflow.c
	$(CC) -o $@ $^ $(FLAGS) $(L1)

clean :
	rm -f test_jit
	rm -f test_of
	rm -f test_sof
